<div id="content">

    <? if(is_array($response)){?>
    <div class="response">
        <span class="<?=$response["class"]?>"><?=$response["msg"]?></span>
    </div>
    <?}?>

    <h1><?=$this->lang->line('Members_Program')?></h1>

    <div class="live_search_msg"></div> 
     
   <h3>Total: <?=$total_rows;?> users</h3> 
       
   <div class="pagination"><?=$pagination_links;?></div>
      
    <? foreach($list as $item){ 
        $class = ($item['Active_Users']=='1')?'active':'inactive';
    ?>

        <div class="list_block search <?=$class?>">     
            <a class="title" href="<?=site_url('admin/insiders/preview/'.$item['id_Users'])?>" rel="view">

                <?=$item['FirstName_UsersDetails']?> <?=$item['LastName_UsersDetails']?>
                <span style="font-size:10px; line-height:14px">
                    &lt;<?=$item['Email_UsersDetails']?>&gt;
                </span>
                                      
            </a>

            <div class="buttons_block">
                <? if ($item['Active_Users'] == 1){ ?>            
                <a href="<?=site_url('admin/insiders/deactivate/'.$item['id_Users'])?>" class="button">deactivate</a>
                <? } else { ?> 
                <a href="<?=site_url('admin/insiders/activate/'.$item['id_Users'])?>" class="button">activate</a>
                <? } ?>
                <a href="<?=site_url('admin/insiders/remove/'.$item['id_Users'])?>" class="button">delete</a>
            </div>

        </div>

    <? } ?>
    
   <div class="pagination"><?=$pagination_links;?></div> 
   
</div>